package com.sunther.document.entity;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

/**
 * @author csb
 * @description: TODO
 * @date 2023/5/15 11:52
 */
@TableName(value = "document_role_v1")
public class RoleEntity extends BaseEntity{

    @TableId(value="id",type = IdType.AUTO)
    private Integer id;

    private String name;

    @TableField(exist = false)
    private List<RoleTagEntity> treeList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<RoleTagEntity> getTreeList() {
        return treeList;
    }

    public void setTreeList(List<RoleTagEntity> treeList) {
        this.treeList = treeList;
    }
}
